<!DOCTYPE html>
<html>
<head>
    <@h.head />
	<title></title>
</head>

<body>

<table id="dgData" class="easyui-datagrid" style="width:100%;" 
	data-options="singleSelect:true, 
		url: '${ctx}/data/listpage/${templateId}',
		">
	<thead>
		<tr>
			<th data-options="field:'id'" align="center" formatter="fmtId">ID</th>
			<th data-options="field:'name',width:'20%'">名称</th>
			<th data-options="field:'code',width:'20%'">编码</th>
		</tr>
	</thead>
</table>

<script type="text/javascript">
function fmtId(val, row, index) {
	//var html = "<a href='javascript:del(\"" + row.id + "\")' title='删除' class='tx_blue' >删除</a>";
	var html = "<a href='${ctx}/data/edit/${templateId}?dataId=" + row.id + "' target='_blank' title='编辑数据'>编辑数据</a>";
	html += "&nbsp;&nbsp;"
	html += "<a href='${ctx}/data/show/${templateId}?dataId=" + row.id + "' target='_blank' title='查看数据'>查看数据</a>";
	return html;
}
</script>

</body>
</html>
